package com.nian.mongodb.service.dao;

import com.nian.mongodb.service.model.Company;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 用途：公司 Dao
 * 开发：zhangmj
 * 日期：2020/4/12 0012 18:33
 */
@Repository
public interface CompanyRepository extends MongoRepository<Company, String> {

    Company findByCode(String code);

    List<Company> findByName(String name);
}
